package com.extra_archive.framework.core.mvc.view 
{
	import com.extra_archive.framework.core.mvc.controller.IController;
	import com.extra_archive.framework.core.mvc.model.IModel;

	import flash.display.Sprite;
	import flash.errors.IllegalOperationError;
	import flash.events.Event;

	//Abstract Class
	public class ComponentView extends Sprite implements IComponentView{

		protected var _model : IModel;
		protected var _controller : IController;


		
		public function ComponentView(model:IModel=null,controller:IController=null) {
			_model = model;
			_controller = controller;
		}
		
		
		
		public function addComponent(component : IComponentView) : void {
			 throw new IllegalOperationError("addComponent operation not supported");
			
		}

		public function removeComponent(component : IComponentView) : void {
			 throw new IllegalOperationError("removeComponent operation not supported");
		}
		
		public function getChild(index : int) : ComponentView {
			throw new IllegalOperationError("getChild operation not supported");
			return null;
		}
		
		
		
		public function update(event : Event = null) : void {
			 throw new IllegalOperationError("update operation not supported");
		}
		
		public function initialize() : void {
			 throw new IllegalOperationError("initialize operation not supported");
		}
		
		
	}
}
